from google.appengine.ext import webapp
from google.appengine.ext.webapp import template

from utils import *
from datatypes import Asset

"""
Handles rquests for the base_url. Shows a splashscreen
and login link.
"""
class IndexHandler(webapp.RequestHandler):

    def get(self):
        
        templateData = {}
        templateData["logout_url"] = users.create_login_url(GAPYCDN_CONFIG["base_url"] + "manage")

        # write out the index template
        self.response.out.write(template.render(getTemplatePath("index"), templateData))
        
